﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyWebPagesStarterKit;

public partial class UserControls_LiveWriter : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string LiveWriteID = WebSite.GetInstance().LiveWriterID;
        if (!string.IsNullOrEmpty(LiveWriteID))
            litLiveWriterID.Text = string.Format("<script type=\"text/javascript\" src=\"http://api.microsofttranslator.com/v1/Ajax.svc/Embed?appId={0}\"></script>", LiveWriteID);
        else
            panel.Visible = false;
    }
}
